package com.hxx.widget.richtext.editor

import android.text.Editable

/**
 * 段落节点
 */
interface EditorHistory {
    fun redo(editor: Editable)
    fun undo(editor: Editable)

    fun onStyleChanged(selectionStart: Int, selectionEnd: Int,start:Int,end:Int,spans:Array<Any>) {}

    fun onCharChanged(selectionStart: Int, selectionEnd: Int,start:Int,end:Int,oldChars:String,replaceChars:String){}
}